﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace AllServer.Core.Entity;
    ///<summary>
    ///F码表
    ///</summary>
    [SugarTable("TFreeUseCode")]
    public partial class TFreeUseCode
    {
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="Id")]
        public int Id {get;set;}
        /// <summary>
        /// F码
        /// </summary>           
        [SugarColumn(ColumnName="FreeCode")]
        public string FreeCode {get;set;}
        /// <summary>
        /// 产品id
        /// </summary>           
        [SugarColumn(ColumnName="ProductId")]
        public int ProductId {get;set;}
        /// <summary>
        /// F码类型(会员类型 1月会员 2季会员 3年会员 1001自定义会员)
        /// </summary>           
        [SugarColumn(ColumnName="TermType")]
        public int TermType {get;set;}
        /// <summary>
        /// 状态（0未使用 1已使用）
        /// </summary>           
        [SugarColumn(ColumnName="State")]
        public int State {get;set;}
        /// <summary>
        /// 备注
        /// </summary>           
        [SugarColumn(ColumnName="Remark")]
        public string Remark {get;set;}
        /// <summary>
        /// 安卓id
        /// </summary>           
        [SugarColumn(ColumnName="AndroidId")]
        public string AndroidId {get;set;}
        /// <summary>
        /// 用户码
        /// </summary>           
        [SugarColumn(ColumnName="UserCode")]
        public string UserCode {get;set;}
        /// <summary>
        /// 创建时间
        /// </summary>           
        [SugarColumn(ColumnName="CreateTime")]
        public DateTime CreateTime {get;set;}
        /// <summary>
        /// 使用时间
        /// </summary>           
        [SugarColumn(ColumnName="UsedDate")]
        public DateTime? UsedDate {get;set;}
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(ColumnName="BatchDesc")]
        public string BatchDesc {get;set;}
        /// <summary>
        /// 创建人id
        /// </summary>           
        [SugarColumn(ColumnName="CreatedUserId")]
        public int CreatedUserId {get;set;}
        /// <summary>
        /// 创建人名字
        /// </summary>           
        [SugarColumn(ColumnName="CreatedUserName")]
        public string CreatedUserName {get;set;}
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(ColumnName="Discriminator")]
        public string Discriminator {get;set;}
        /// <summary>
        /// F码天数
        /// </summary>           
        [SugarColumn(ColumnName="TermDays")]
        public int TermDays {get;set;}
        /// <summary>
        /// F码对应价格Id(TPriceType的Id)
        /// </summary>           
        [SugarColumn(ColumnName="TermId")]
        public int TermId {get;set;}
        /// <summary>
        /// 是否被售卖
        /// </summary>           
        [SugarColumn(ColumnName="IsProxy")]
        public int IsProxy {get;set;}
        /// <summary>
        /// 迁移主键
        /// </summary>           
        [SugarColumn(ColumnName="RawId")]
        public int? RawId {get;set;}
        /// <summary>
        /// 最后更新时间，用于同于更新判断
        /// </summary>           
        [SugarColumn(ColumnName="SyncUpdateTime")]
        public DateTime? SyncUpdateTime {get;set;}
    }
